class UsersUniqueEmail < ActiveRecord::Migration
  def self.up
    execute "ALTER TABLE `users` ADD UNIQUE (`email`)"
  end

  def self.down
    execute "ALTER TABLE `users` DROP INDEX `email`"
  end
end
